Check for unique username and email during registration