Fix bug in reset password

It was not case-insensitive; people could not reset their password
Now it is case insensitive