added validations to user model
basic user model