Improved forms validation.