main to test login