Fixed bug due to which reset password emails werent being sent.