Added logged in state and userbox

to call logged in state type in: index.php?login_state