Added a method to check if the current client is authenticated for a giv...

...en username and password.