actually hides the sidebar and really makes routes not accessible
fixes an error with user being null