Only check email input if it's being provided.