Complete integration test for login error handling