fixed error where menu didn't close when logged in