Fixing the authentication client