Automating test login for localhost.