Adding validation constraints to user model