Updated logic. Server validades DHPK and signature