hook_form_alter - validation function does not get called in Internet Explorer I created my own function to validate username and password from the login form, and it's working great in FF and Chrome, but does not work in IE 8 and 9.

I'm using hook_form_alter to catch the loginform and then I replace the default validation function "user_login_authenticate_validate" with "my_own_validation_function" in the $form['#validation'] array.

But for some reason the new validation function never gets called in IE, but I've verified that the default validation function is replaced by printing the $form info, and it all looks great. 

I'm not really sure of where to go from here, I've spent way to much on this now ;)

Any help appreciated!
The Form API works via PHP and is executed in its entirety on the server. There really should be no question of browsers being involved in the equation. That is, unless you are doing something with JS (or CSS/anything client side) that might affect form input.

I would:


Clear all my caches.
Ensure that I'm working on the same page, site (and as the same user) in both FF and IE.
When you mention "printing the $form info", I assume that you are using the Devel module. If you aren't, you should be. Devel's dpm() function is the best way to debug these things by adding diagnostic print statements in each step - the form, the validation hook and the submit hook.