Implemented the passcode submitting