I flashed my phone again with the same files and somehow now the default security code is working! I dunno how this happened but I'm happy.