$sanitized_email = sanitize_email($email);
        echo display_unlock_form($sanitized_email);
    } else {
        $locked_user = get_user_by('email', $email);
        if (!$locked_user) {
            //user with this email does not exist in the system
            $errors .= '<p>' . __('User account not found!', 'all-in-one-wp-security-and-firewall') . '</p>';
            echo '<div id="login_error">' . $errors . '</div>';
        } else {
            //Process unlock request
            //Generate a special code and unlock url
            $ip = AIOWPSecurity_Utility_IP::get_user_ip_address();
            //Get the IP address of user
            $ip_range = AIOWPSecurity_Utility_IP::get_sanitized_ip_range($ip);
            //Get the IP range of the current user
            $unlock_url = AIOWPSecurity_User_Login::generate_unlock_request_link($ip_range);
            if (!$unlock_url) {
                //No entry found in lockdown table with this IP range
                $error_msg = '<p>' . __('Error: No locked entry was found in the DB with your IP address range!', 'all-in-one-wp-security-and-firewall') . '</p>';
                echo '<div id="login_error">' . $error_msg . '</div>';
            } else {
                //Send an email to the user
                AIOWPSecurity_User_Login::send_unlock_request_email($email, $unlock_url);
                echo '<p class="message">An email has been sent to you with the unlock instructions.</p>';
            }
        }
        $display_form = false;
    }
}
?>