Fixed password reset

New password needed to be encrypted before added to database.