Yes I am sure. Every time I submit the form, no matter what data in the password field, always the exact hash. So what would be the cause of this then?
the only possible cause is, like everyone is saying, $registerPassword must be the same. Show us the code which defines $registerPassword.
Also may i suggest using sha1() instead of md5() because md5 has been broken
var_dump( $registerPassword );Before you hash it and see what the result is. If it’s what you expect it to be, try a different hash method although I am not sure it will help.