added validations for candidate model