most of login/register functionality is now complete.