What does a hard reset really means?
It means to reset your phone to the settings and features which were accompanied from the company or at firmware update instant.
There are actually two codes you can use to reset the password and phone setting.
Below are these codes. Type them in the phone and this should solve your problem.
The security code will be reset to 0000.
This will allow you to format the phone easily.