Better error messages for login errors in tests