Client-side password validation for registration page.

Check password for length, and check that it matches the confirmation.
List explanations for form errors.