added user register/login/logout