Added functionality to save and retrieve passcode