Built the test login function