Implemented custom validation based on data dependencies