KP Assembly legislates to regularise over 3,000 doctors