Added password validator.

Keep form from clearing if validation fails (so user can correct
submission)