Fixed authentication flow for WebSphere login

Testing the hook against a WebSpehre server instead of Tomcat showed up some differences in the authentication flow.  These changes fix the flow.  No new dependencies added.