Hi Rahul,
You need to create a validation rule to check the Organisational Assignments for the personal number and the project company code.
I dont think this can be done via standard, a small validation is required on save or entering the value for the person responsible field.
Regards
Terence