add validation in user model