VAE using CNN on CIFAR10 dataset

Can anyone pls tell me why my loss is coming negative. And my output is very bad…any suggestion.

link of code:- https://drive.google.com/open?id=1SqN6ruqdmWg_Y7rd_S_n-bKTtCACDKkr