User authorization, sign out, and smart navbar