fixes bug introduced with navbar update which accessed user data before user logged in