Ruby on Rails client side validations