add validation to user