authenticated the server