adjusted login click event