tweaked and fixed login/register closes #53