Automate the login form -- only work for the first test for some reasons