Why isn't email validation checking for space?