fixed login/register a bit