Update email.c

added validation checks - could be abstracted out into a helper function with protoype bool isValidInput(char *str);