Rename check_mail->mail. Abstract into function.