support validations

Adds support for active_model validations