Please use one of the below Samsung secret codes to format your phone:
There are actually two codes that you can actually use to
reset the password. Below are these codes. Please dial them
up and have the problem solved.
Through this mean the security code will be reset to 0000.
This will allow you to format the phone easily.