Fixed validation check for email and email 'from' address