login/register/logout via web sockets without page refresh