Correct behaviour when page is accessed when not logged in. Closes #56