added validations to the job creation, with tests