Fixing account login/register