fixed a bit of login/register stuff