added login/register/logout