cleaning up login/register flow a bit. should be mostly all there