Adding support for signing out, checking current authentication on page load.