Fix for before_validation_on_create removal from rails 3