insert loggedIn before hash'