added login/logout links to layout and appropriate tests to check for logging in and out