move login click to script