allow users to logout and view homepage