added a check email input functionality