Added proper validation to job.rb