added validations to email input