Fixed authentication flow for WebSphere login

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