test login with javascript client