F diff --git a/index.php b/index.php --- a/index.php +++ b/index.php</div><div class="vcenter" id="signupform">- <form name="hero_form" action="/php/register.php" method="post" onsubmit="return validate_hero_form()">+ <form name="register_form" action="/php/register.php" method="post" onsubmit="return validate_hero_form()"><h2>Get started</h2><div class="content"><p>Username</p></div><div class="vcenter" id="loginform">- <form name="hero_form" action="/php/login.php" method="post" onsubmit="return validate_hero_login_form()">+ <form name="login_form" action="/php/login.php" method="post" onsubmit="return validate_hero_login_form()"><h2>Login</h2><div class="content"><p>Username</p>F diff --git a/main.js b/main.js --- a/main.js +++ b/main.js}function validate_hero_login_form(){- var username=document.forms["hero_form"]["username"].value;+ var username=document.forms["login_form"]["username"].value;var flag=true;clear_hero_errors();}function validate_hero_form(){- var username=document.forms["hero_form"]["username"].value;- var email=document.forms["hero_form"]["email"].value;- var password=document.forms["hero_form"]["password"].value;- var password2=document.forms["hero_form"]["password2"].value;+ var username=document.forms["register_form"]["username"].value;+ var email=document.forms["register_form"]["email"].value;+ var password=document.forms["register_form"]["password"].value;+ var password2=document.forms["register_form"]["password2"].value;var flag=true;clear_hero_errors();