Updated set_userstate.php