Redirect to login page on unauthenticated AJAX requests