Password reset fix

For a while now, emails have been stored in the database lowercased. This broke the password reset in certain situations. (And broke the test ... not sure why we didn't catch it until now)