added logic so that emails can be put in and will be resolved to usernames if they exist in the db also spaces between entered fields no longer matter