coding #115 adding constraints when the user's nickname exists