Client-side form validation for Rails