Validate authentication method against server version

Validate authentication method for the server version being used and list valid methods in case of error.