Adding re-login if access denied; need better session error checking and reporting