Created User model with email validation and secure password storaging.