cleaned up unused method.
modified the signin flow to conditionally route traffic to an HTML sign in form or to the Oauth flow depending on whats required.