Add checks for failed login in CMSToolbar._request_hook_post