fixed bug in email validator