added validations on flow and field