Added a method to check if the current client is authenticated for a given username and password.