wip - fix login bug