jQuery Validation Plugin
Demo
Login Form (Enter "foobar" as password)
Username
Password
Reset form
Please login!