Added basic validations for required parameters