I don't see all the code but i'm gonna assume you should be passing by only one form method. You have two different form methods being used. The $_GET and $_POST would cause a problem if your html form only submits via POST or GET. Assuming your $_GET["SUBMIT_FORM_ACTION"] is passed in the same way as the $_POST['email'] and $_POST['password'] they should have matching variable names depending on the method attribute of the html form. * Don't have all the code so these are just my assumptions.