Loss increasing for every iteration

I wrote a RNN from scratch in numpy and I am not sure if the backpropogation equations were correct but my loss function increases for every iteration.