Validate and email function works

email function works