added a validation for user role ( must be 1, 2, 3, or 4)