I've been following almost every tutorial I found online and copying it word for word, and it is not submitting or doing anything

help is appreciated

<form action='<?php echo PATH ?>login/login' id="loginForm" method="post">
<div class="alternate-login-content">
<div class='alternate-login-line'>
<div class="alternate-login-label">
<input type='text' style="width:230px" name='error-page-username' />
<div class='alternate-login-line'>
<div class="alternate-login-label">
<input type='password' style="width:230px" name='error-page-password'/>
<div style="border-top:1px solid #999; border-bottom:1px solid #999; padding-top:5px; padding-bottom:5px; width:240px">

<div class='button-holder'>
<div style='width:590px; margin-left:auto; margin-right:auto;'>
<input type="submit" value="Login" style="margin-right:10px;" >
<span style="font-family:arial; font-size:12px;">New To MyCookBook?</span> <a style="text-decoration:underline;" href="<?php echo PATH?>login/signup">Sign Up Now</a>

jquery (I've tried both e.preventDefault() or return false, and same issue)

var formURL = $(this).attr("action");
var postData = $(this).serialize();

type: 'POST',
url: formURL,
data: postData,
cache: false
//alert("this works")
//return false

php function that I want it to call

public function userLogin() {
$sth = $this->db->prepare("SELECT * FROM users WHERE
UserName = :username AND PassWord = assword");
$sth->execute(array(':username' => $_POST['error-page-username'],
'assword' => $_POST['error-page-password'],

$data = $sth->fetch();

$count = $sth->rowCount();
if ($count >0)
// login
Session::set("user-recipe-table", $data['userRecipeTable']);
Session::set('user-recipe-image-folder', $data['userImageFolder']);
Session::set('first-name', $data['firstName']);
Session::set('loggedIn', true);
header('location:'. PATH . 'recipes');
} else {
//show an error
require_once 'libs/Message.php';
$msg = new Message();
$msg->set('<div class="login-error-message">Wrong Username/Email and password combination.<a href="javascript:void(0);" onclick="closeErrorMessage()"><div class="error-close"></div></a></div>');
header('location:' . PATH . 'login/userLogin');


thanks for the help