improved test login