Fix bug with password reset