Fixed email validation bug