Forcing refresh of session data on submit
Add function to retrieve auth code
Refacting to issue a new auth code on login