Fixed email validation bug to handle periods