MLP loss is spiking and accuracy is pretty low

Hey,
So, I was building my first neural network and my loss is not decreasing as much as it is showing in the video. Also, loss has a spike in between.
My accuracy is only 79% and i have checked my code many times, it is same as it is in the videos. I even wrote the code twice but still getting the same accuracy.