Set post status to draft after validating post meta values in save_post hook

After some research, I altered my approach to validate the meta values in the following way:

  1. Create a new meta key(for post type) to store the validation (0 and 1).
  2. Initiate it with 0.
  3. This need not be kept/shown in the meta form.
  4. While saving the meta fields (preferably within save_post hook), set its value depending upon the validation.
  5. Use this meta value to detect the validation status of the post. For example you can display/hide the post depending upon this value.