The User class now encrypts passwords in the database