Created a validation function

* Validates the input for flavor, input/outpu URLs, cluster name and
returns appropriate error code.
* Updated Response code for job create API
* Updated job_test.sh script

Signed-off-by: Shashank Sahni <shredder12@gmail.com>