<a href="contact.php" onclick="return displayContactForm()">…
<form type="post" target="edit_profile.php" onsubmit="return validateProfileForm()">…