Add basic validations.