Add client-side validation for registration