Finished basic login/register.
Code cleanup