move validations into management command