If you want the users to click login, and up come a new window re-write the code to match this...

Change this part of the code from:

if (username=="member1" && password=="password1") {...