Add support for the State Parameter when authenticating.
login accepts the option of "state"
Created a function getState to return the state value