To solve the error in PAN and Legal Name the applicant should look at the name mentioned in the PAN. The name which is mentioned in legal name should be same as pan card. if there is any slight difference between both the result will be invalid. There must be no mis-matching name placement. Avoid such mistakes which might cause problems in future. Even sometimes spacing also creates problems.
To check your pan details, google search on know your pan.-where a page will be mentioned where you have to enter your pan details, the details displayed will be shown as per CBDT database which you can use for your legal name to avoid mistakes.
For any further detail contact Afleo.com