modified checkUserEmails to trim email address to fix the newLine error.