Add ajax_login_required decorator function