fixed bug in email validation