Validations and db changes