Switch gocheck to new import path
Extract login helper for tests