Checking for valid email before login