Close login menu when moving between pages. Fixes #210