send post request to login with javascript