merge login and register, fix a bug

fix bug:
when you go to login.html from register.html,
or go to register.html from login.html,
the submit button cannot be clicked.