Fix authentication method validation

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