added a module for checking a passcode