[#223] Fixes #223 by surrounding relevant routes with if statements and setting loggedin to being always false