added email validation to email input