fix login/register