To regain access, turn off the phone and then press Volume Up + Power button until you see the recovery menu. Select Wipe Data/ Factory reset using the volume buttons then Power button to confirm. All your phone's custom settings (including the password) and installed applications will be wiped.