Something I like doing as well is part of my form validation is to send an error message back via the url and REQUEST the error in the previous page. In this way I can display multiple error messages(according to my own set error codes) or success messegas to the user.
Validation page: ...?error=nopass
This error would display a certain message based on the error. Its quite simple and might involve more work but its for interest sake.