Stop sending email if login and/or code are not entered and retionalize email errors coding