added logic to not create users with emails that have white spaces