Fixed client-side validation.