I have a login page called LoginTrial, the user enters the username and password and presses enter to log in. The code below does successfully test the validity of username/pass