Client-side form validation for Rails 3