Refine protocol. Replace wrongPassword with invalidCredentials