email check function edit

Edited email function to do additional checks including one to verify
there are no spaces entered as well as a check to make sure the "."
comes after the "@" symbol.