add validation to UserResource