Need client side validation? Check out my compontent
http://yuilibrary.com/gallery/show/formvalidator