Validation added for user model