Added support of `:create` and `:update` contexts for validations
Fixed the persistence when `:via` is specified in the repository