Fixed some code in the forgot password funtionality