Hiding navbar and edit buttons from guest users