minor refactoring: otp generation returns status as failed for unregistered users