Proper login handling
Fix 401 login form