You can get the pan card with online easy way but what is the proper way to verify it ?

I need to verify PAN card in following way :
1. I need to know if my pan card details are correct in database.

2. I need to know if PAN card of someone is valid or not ?

So what is the correct way to get PAN information online ?