added new constraint to user model