more work on login/register