added some user validation to User model