Adding support for server authentication.