Code for setting custom lock codes