made emails lowercase in the database to facilitate matching
password reset finished, fixes #20