added agent login/register