update for login/register