Added password hashing. Fixed email validation.