Fix for uniqueness check for user email and username.
* Changed logic for checkEmailUniqueness and checkUsernameUniqueness
  pre methods to expect undefined for non unique usernames/emails