submit_form_ok only checks whether the page returns a HTTP status code of 200, nothing else. If you return custom messages as error messages, you will have to parse your returned page and check that there is no "message" bar with an error message in it.