add validation to newhirecredentials