Added more validations to user model.