some functional tests on login routes (partially completed)