reorganize testing login code

also the previous commit... 'login system' not logic D: