Emailcheck as main function